import Vue from 'vue'
import Alert from './Alert.vue'

export default function(text = 'test') {
  const Profile = Vue.extend(Alert)
  /**
   *
   */
  const alert = new Profile({
    data() {
      return {
        isShow: true,
        text
      }
    }
  }).$mount()
  setTimeout(() => { alert.isShow = false }, 1000)

  document.body.appendChild(alert.$el)
}

